//  IDVI 1.0 source copyright 1996 Garth A. Dickie
//
//  This source is free for non-commercial use.  No warranty, etc.
//  Please acknowledge reuse by including the line:
//
//  "Based in part on IDVI 1.0 source copyright 1996 Garth A. Dickie"
//
//  in your documentation and source code.  For commercial use or
//  distribution, please contact the author.  Please also send
//  questions, comments, bug reports, or fixes.
//
//  Best Regards,
//  Garth A. Dickie
//  dickie@elastic.avid.com

package ibook.v10.idvi.display;

import java.awt.Graphics;

//  Originally, ToggleActionView added a small triangle to the upper-left corner of the View.
//  However, I decided that this was unatractive.  It is probably best to let the document
//  author decide what adornment is appropriate.

class ToggleActionView extends ActionView {
//  final private static int kTriangleWidth = 7;
//  final private static int kTriangleHeight = 7;
//  final private static int kTriangleOffset = 10;

    ToggleActionView(
            ScaledColorScheme colorScheme, int scale, ViewPanel panel,
            ActionBlockGroup group, Block blockChild, boolean selected, boolean childDoneLoading ) {
        
        super( colorScheme, scale, panel,
                group, blockChild,
                ScaledColorScheme.kIndexLink, ScaledColorScheme.kIndexLink, ScaledColorScheme.kIndexSelectedLink,
                selected, childDoneLoading );
    }

//  void paintAdornment( Graphics g, int color, DVIRectangle bounds, DVIRectangle clip ) {
//      if( clip.right > bounds.left + kTriangleWidth && clip.top < bounds.top + kTriangleHeight ) {
//          g.drawLine( bounds.left, bounds.top, bounds.left + 6, bounds.top );
//          g.drawLine( bounds.left, bounds.top, bounds.left, bounds.top + 6 );
//          g.drawLine( bounds.left, bounds.top + 6, bounds.left + 6, bounds.top );
//      }
//  }
//
//  void addAdornmentBounds( DVIRectangle bounds ) {
//      bounds.left -= kTriangleOffset;
//  }
//
//  void removeAdornmentBounds( DVIRectangle bounds ) {
//      bounds.left += kTriangleOffset;
//  }
//
//  void getAdornmentBounds( DVIRectangle bounds ) {
//      bounds.right = bounds.left + kTriangleWidth;
//      bounds.bottom = bounds.top + kTriangleHeight;
//  }
}
